package com.daqian.chance.example.web.modules.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.daqian.chance.example.web.modules.member.po.dto.MemberDTO;
import com.daqian.chance.example.web.modules.member.po.entity.Member;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 用户-信息 服务类
 * </p>
 * @author daqian
 * @since 2019-07-25
 */
public interface IMemberService extends IService<Member> {
    /**
     * 分页查询
     * @param memberDTO
     * @return
     */
    PageInfo<Member> page(MemberDTO memberDTO);

    /**
     * 登录
     * @param phone
     * @param loginPwd
     * @param session
     * @return
     */
    Member login(String phone, String loginPwd, HttpSession session);

    /**
     * 获取当前登录用户信息
     * @param session
     * @return
     */
    Member getLoginUser(HttpSession session);

}
